﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Host.Domain
{
    /// <summary>
    /// 设备信息表
    /// </summary>
    public  class Devices
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        public int DeviceId { get; set; }
        /// <summary>
        /// 换热站外键
        /// </summary>
        public int StationId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }
        /// <summary>
        /// 设备类型 1=补水泵 2=循环泵 3=阀门
        /// </summary>
        public int DeviceType { get; set; }
        /// <summary>
        /// 标识设备是否可以进行远程控制
        /// </summary>
        public bool DeviceIsControllable { get; set; }
        /// <summary>
        /// 设备当前的开关状态 true=开 false=关
        /// </summary>
        public bool DeviceIsOn {  get; set; }
        /// <summary>
        /// 设备的控制模式 1=手动模式，2=自动模式
        /// </summary>
        public int ControlMode { get; set; }
        /// <summary>
        /// 记录当前设备是否有故障
        /// </summary>
        public bool IsFaulty {  get; set; }
    }
}
